﻿using System;

namespace FoodBank.Core.Models
{
    public class UserSetting
    {
        public int UserSettingId { get; set; }
        public int GenderValue { get; set; }
        public int SytemOfUnitsValue { get; set; }
        public int LanguageValue { get; set; }
        public double Weight { get; set; }
        public double Height { get; set; }
        public DateTime BirthDate { get; set; }

        public Gender Gender
        {
            get { return (Gender)GenderValue; }
            set { GenderValue = (int)value; }
        }

        public SystemOfUnits SystemOfUnits
        {
            get { return (SystemOfUnits)SytemOfUnitsValue; }
            set { SytemOfUnitsValue = (int)value; }
        }

        public Language Language
        {
            get { return (Language)LanguageValue; }
            set { LanguageValue = (int)value; }
        }
    }
}